#include <stdio.h>
#include <string.h>

#include "security.h"
#include "security_error.h"

int main() {
    int ret = 0;
    char out[64] = { 0 };
    char in[] = "test";
    size_t olen = 0;

    ret = security_base64_encode(out, &olen, sizeof(out), in, strlen(in));
    if(ret != SECURITY_OK) {
        printf("base64 encode error, code is 0x%04x\n", ret);
        return 0;
    }

    printf("%s\n", out);

    return 0;
}